import 'package:elevator/pages/home/all/detail_new/pages/errors/operate/operate_view.dart';
import 'package:elevator/pages/home/all/detail_new/pages/signs/component/first/first_view.dart';
import 'package:elevator/pages/home/all/detail_new/pages/signs/component/second/second_view.dart';
import 'package:elevator/pages/home/all/detail_new/pages/signs/component/third/third_view.dart';
import 'package:elevator/pages/home/all/detail_new/pages/status/status_view.dart';
import 'package:flutter/material.dart';
import 'package:flutter_expandable_table/flutter_expandable_table.dart';
import 'package:get/get.dart';

import '../../../../../../model/build_info.dart';
import '../../../../../../model/lift_info.dart';
import 'signs_logic.dart';

class SignsPage extends StatelessWidget {

  late SignsLogic logic;
  late Size size;
  double itemWidth = 60;

  SignsPage({Key? key,required BuildInfo buildInfo, required LiftInfo liftInfo}) : super(key: key){
    Get.delete<SignsLogic>();
    logic = Get.put(SignsLogic(buildInfo,liftInfo));
    logic.buildInfo = buildInfo;
    logic.liftInfo = liftInfo;
  }

  @override
  Widget build(BuildContext context) {
    size = MediaQuery.of(context).size;
    itemWidth = (size.width - 12 * 2) / 3;
    return SingleChildScrollView(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.start,
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          const SizedBox(height: 12,),
          FirstPage(logic.buildInfo,logic.liftInfo),
          Container(height: 10),
          SecondPage(logic.buildInfo,logic.liftInfo),
          const SizedBox(height: 10),
          ThirdPage(logic.buildInfo,logic.liftInfo),
          const SizedBox(height: 100,),
        ],
      ),
    );
  }

}